package com.supplychain.scm.core.rocketmq.exception;



/**
 * @author liyang
 * @version 1.0.0
 * @ClassName RocketMqBizException
 * @Description RocketMq
 * @createTime 09:29:00 2022/12/05
 */
public class RocketMqBizException extends MqSendMsgException {
    public RocketMqBizException(String errMsg) {
        super(errMsg);
    }

    public RocketMqBizException(Integer code, String errMsg) {
        super(code, errMsg);
    }

    public RocketMqBizException(String errMsg, Throwable e) {
        super(errMsg, e);
    }

    public static void fail(String message){
        throw new RocketMqBizException(message);
    }

    public static void fail(int code,String message){
        throw new RocketMqBizException(code,message);
    }
}
